package org.ehe.business.drawing.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import io.github.linpeilie.annotations.AutoMapper;
import org.ehe.business.drawing.domain.DesignDrawingSite;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @author :zhangnn
 * @className :DesignDrawingSiteVo
 * @description: TODO
 * @date 2025-09-25 10:01:23
 */

@Data
@AutoMapper(target = DesignDrawingSite.class)
// @JsonInclude(JsonInclude.Include.NON_EMPTY) // 空children不返回
public class DesignDrawingSiteVo {

    private Long id;
    private String siteName;
    private String siteCode;
    private Long parentId;
    private Long projectId;
    private String projectName;
    private String remark;
    private LocalDateTime createTime;
    private String createBy;
    private String delFlag;
    private String tenantId;

    /** 子节点 */
    private List<DesignDrawingSiteVo> children = new ArrayList<>();
}
